package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 服务器列表对象 server
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
public class Server extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务器id */
    private Long id;

    /** 服务器时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务器时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 服务器名称 */
    @Excel(name = "服务器名称")
    private String name;

    /** 服务器价格 */
    @Excel(name = "服务器价格")
    private BigDecimal price;

    /** 服务器内容 */
    @Excel(name = "服务器内容")
    private String nei;

    /** 服务器状态 */
    @Excel(name = "服务器状态")
    private Long status;

    /** 推荐人 */
    @Excel(name = "推荐人")
    private String referrer;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNei(String nei) 
    {
        this.nei = nei;
    }

    public String getNei() 
    {
        return nei;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setReferrer(String referrer) 
    {
        this.referrer = referrer;
    }

    public String getReferrer() 
    {
        return referrer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("time", getTime())
            .append("name", getName())
            .append("price", getPrice())
            .append("nei", getNei())
            .append("status", getStatus())
            .append("referrer", getReferrer())
            .toString();
    }
}
